package com.darkdev.util;

import java.net.ServerSocket;

public class DarkDevJavaGate {
	public static final int PORT = 7373;
	public static void main(String[] args) {
		new DarkDevJavaGate();
	}
	private ServerSocket serv;
	public DarkDevJavaGate() {
		try {
			serv = new ServerSocket(PORT);
		} catch (Exception e) {
			System.err.println("Failed To Listen On Port "+PORT);
			System.exit(0);
		}
		new java.util.Timer().schedule(new java.util.TimerTask(){
			public void run() {
				try {
					new Connection(serv.accept());
				} catch (Exception e){
				}
			}
		},1,500);
	}
}
